package com.kexio.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kexio.common.entity.BaseEntity;

/**
 * 角色菜单关联实体
 * 
 * 对应数据库表 sys_role_menu
 * 存储角色与菜单的多对多关系
 * 
 * @author kexio
 * @since 1.0.0
 */
@TableName("sys_role_menu")
public class RoleMenu extends BaseEntity {
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    
    /**
     * 角色ID
     */
    @TableField("role_id")
    private String roleId;
    
    /**
     * 菜单ID
     */
    @TableField("menu_id")
    private String menuId;
    
    // ==================== Getters and Setters ====================
    
    public String getId() { 
        return id; 
    }
    
    public void setId(String id) { 
        this.id = id; 
    }
    
    public String getRoleId() { 
        return roleId; 
    }
    
    public void setRoleId(String roleId) { 
        this.roleId = roleId; 
    }
    
    public String getMenuId() { 
        return menuId; 
    }
    
    public void setMenuId(String menuId) { 
        this.menuId = menuId; 
    }
    
    // ==================== ToString ====================
    
    @Override
    public String toString() {
        return "RoleMenu{" +
                "id='" + id + '\'' +
                ", roleId='" + roleId + '\'' +
                ", menuId='" + menuId + '\'' +
                ", " + super.toString() +
                '}';
    }
}
